{% extends "org-base.html" %}
{% block title %}
    机构讲师
{% endblock %}
{% block right_form %}
    <div class="right companycenter layout" >
        <div class="head">
            <h1>机构讲师</h1>
        </div>

        <div class="messagelist">
            <div class=" butler_list butler-fav-box">
                {% for teacher in all_teacher %}
                <dl class="des users">
                    <dt>
                        <a href="">
                        <img width="100" height="100" class="scrollLoading" data-url="{{ teacher.image.url }}" src="{{ teacher.image.url }}"/>
                        </a>
                    </dt>
                    <dd>
                        <h1>
                            <a href="">
                            {{ teacher.name }}<span class="key">已认证</span>
                            </a>
                        </h1>
                        <ul class="cont clearfix">
                            <li class="time">工作年限：<span>{{ teacher.work_years }}年</span></li>
                            <li class="c7">课程数：<span>{{ teacher.course_nums }}</span></li>
                        </ul>
                    </dd>
                </dl>
                {% endfor %}
            </div>
        </div>
    </div>
         <div class="pageturn">
            <ul class="pagelist">
             {% if all_teacher.has_previous  %}
                 <li class="long"><a href="?page={{all_teacher.previous_page_number}}">上一页</a></li>
            {%endif%}

                {% for i in   all_teacher.paginator.page_range %}
                 {%if i == all_teacher.number  %}
                     <li class="active"><a href="?page={{ i }}">{{i }}</a></li>
                    {% else %}
                      <li><a href="?page={{ i }}" class="page">{{ i }}</a></li>
                    {% endif %}
                {% endfor %}
                {% if all_teacher.has_next  %}
                 <li class="long"><a href="?page={{all_teacher.next_page_number}}">下一页</a></li>
            {%endif%}
            </ul>
        </div>
{% endblock %}

{% block page_path %}
    机构讲师
{% endblock %}